<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
	<td valign="middle" style="padding-top:20px">
		<?php echo $listCat;?>
	</td>
	<td valign="top" width="85%" style="border-left:1px solid #C3BB9A;">
	<form name="form_admin" method="POST" action="<?php echo formEditAction()?>">
    <input type="hidden" name="id" value="<?php echo $newsletter['iId']?>" />
<table width="100%">
	<tr>
        <td width="10%"><b>Title: </b> </td>
        <td width="90%">
        	<input class="normal3" type="text" name="Title" id="Title" value="<?echo $newsletter['cTitle']?>"/>        
			<b>Status</b>
			<select name="Status">
				<?echo liststatus($newsletter['iStatus'])?>
			</select>
        </td>
    </tr>
    <tr>
      <td ><strong>Message:</strong></td>
      <td>
		  <textarea name="Message" id="Message" 
          style="height:500px; width:99%"><?php echo $newsletter['cContent']?></textarea>
	  </td>
    </tr>		
</table>
</form>
</td>
</tr>
</table>
<script>
function showhidebyid(id)
{
	ob=document.getElementById(id);
	ob.style.top=tempY;
	if(ob.style.display=="none")
	{
		ob.style.display="";
	}else
	{
		ob.style.display="none";
	}
}
function showedit(id)
{
	showhidebyid("editname");
	document.getElementById('idEdit').value=id;
	document.getElementById('NameEdit').value=document.getElementById('ename'+id).innerHTML;
	document.getElementById('LinkEdit').value=document.getElementById('elink'+id).value;
}
// Detect if the browser is IE or not.
// If it is not IE, we assume that the browser is NS.
var IE = document.all?true:false

// If NS -- that is, !IE -- then set up for mouse capture
if (!IE) document.captureEvents(Event.MOUSEMOVE)

// Set-up to use getMouseXY function onMouseMove
document.onmousemove = getMouseXY;

// Temporary variables to hold mouse x-y pos.s
var tempX = 0
var tempY = 0

// Main function to retrieve mouse x-y pos.s

function getMouseXY(e) {
  if (IE) { // grab the x-y pos.s if browser is IE
    tempX = event.clientX + document.body.scrollLeft
    tempY = event.clientY + document.body.scrollTop
  } else {  // grab the x-y pos.s if browser is NS
    tempX = e.pageX
    tempY = e.pageY
  }  
  // catch possible negative values in NS4
  if (tempX < 0){tempX = 0}
  if (tempY < 0){tempY = 0}  
  return true
}
</script>